<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    String[] names={"飞飞","哈哈","shenme"};
    session.setAttribute("name", names);
%>
${name[0]}  ${name[1]}<br>
<c:forEach items="${name}" var="name" varStatus="status">
    ${status.index}----${status.count}----${name}<br>
</c:forEach>
</body>
</html>
